﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CoVanHocTapData.Interface;
using CoVanHocTapData.Entities;

namespace CoVanHocTapData.Concretes
{
    public class MonDuKienMoRepository:IMonDuKienMoRepository
    {
        DangKyPhuEntities entities;

        #region constructor
        public MonDuKienMoRepository()
        {
            entities = new DangKyPhuEntities();
        }
        #endregion

        public IQueryable<Entities.MonDuKienMo> LayMonDuKienMo(string monHocID, int hocKyID)
        {
            return from m in entities.MonDuKienMoes
                   where m.MonHocID.Equals(monHocID)
                   && m.HocKyID.Value == hocKyID
                   select m;
        }
    }
}
